﻿<%@ Page Title="" Language="C#" MasterPageFile="/Common/Master.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentForm" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentHtml" runat="Server">
    <div class="easyui-layout tableEdit" data-options="fit:true,border:false">
        <div data-options="region:'center',border:false">
            <div class="z_wrap">
                <ul class="info">
                    <li>
                        <em class='l_name'>登录名称：</em>
                        <div class='r_con' id='login_name'></div>
                    </li>
                    <li>
                        <em class='l_name'>用户名：</em>
                        <div class='r_con' id='user_name'></div>
                    </li>
                    <li>
                        <em class='l_name'>密码：</em>
                        <div class='r_con' id='PassWord'></div>
                    </li>
                    <li>
                        <em class='l_name'>地址：</em>
                        <div class='r_con' id='Address'></div>
                    </li>
                    <li>
                        <em class='l_name'>头像：</em>
                        <div class='r_con' id='ImgUrl'></div>
                    </li>
                    <li>
                        <em class='l_name'>性别：</em>
                        <div class='r_con' id='Gender'></div>
                    </li>
                    <li>
                        <em class='l_name'>手机号：</em>
                        <div class='r_con' id='Mobile'></div>
                    </li>
                    <li>
                        <em class='l_name'>备注：</em>
                        <div class='r_con' id='Remark'></div>
                    </li>
                    <li>
                        <em class='l_name'>创建时间：</em>
                        <div class='r_con' id='AddTime'></div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            if ($.getUrlParamer("guid") != "") {
                DataBind();
            }
        });

        function DataBind() {
            $.InvokeAjax({
                url: "Api/V1/System_UserInfo/GetUserInfo",
                data: { ID: $.getUrlParamer("guid") },
                callBack: function (data) {
                    var obj = $.StrToJson(data).Results;

                    $.SetValue("ID", obj.ID);
                    $.SetValue("login_name", obj.login_name);
                    $.SetValue("user_name", obj.user_name);
                    $.SetValue("PassWord", obj.PassWord);
                    $.SetValue("Address", obj.Address);
                    $.SetValue("ImgUrl", obj.ImgUrl);
                    $.SetValue("Gender", obj.Gender);
                    $.SetValue("Mobile", obj.Mobile);
                    $.SetValue("Remark", obj.Remark);
                    $.SetValue("AddTime", $.DateFormat(obj.AddTime, 'yyyy-MM-dd HH:mm:ss'));
                    $.SetValue("AddUserID", obj.AddUserID);

                }
            });
        }
    </script>
</asp:Content>
